package Stringlei;

public class String2 {
    public static void main(String[] args) {
        String str1 = "abc";
        String str2 = "abc";
        char[] array = {'a','b','c'};
        String str3=new String(array);

        System.out.println(str1.equals(str2));
        System.out.println(str2.equals(str3));
        System.out.println(str3.equals(str1));
        System.out.println("===================");
        String str4="ABC";
        System.out.println(str1.equals(str4));
        System.out.println(str1.equalsIgnoreCase(str4));//忽略大小写
    }
}
